minetest.register_craftitem("lunodecor:lupa", {
	description = "Lupa (Exibe descricao de item no mapa)",
	image = "obj_lupa.png",
	groups = { glass=1 },
	liquids_pointable = true, -- Pode apontar para node de Liquidos (mais tarde podera coletar agua)
	stack_max=1, --Acumula 1 por slot
	on_use = function(itemstack, user, pointed_thing)
		if pointed_thing.under~=nil then
			local node = minetest.get_node(pointed_thing.under)
			props = minetest.registered_items[node.name]
			if minetest.get_player_privs(user:get_player_name())["server"] then
				local node = minetest.get_node(pointed_thing.under)
				props = minetest.registered_items[node.name]
				minetest.chat_send_player(user:get_player_name(), "###### '"..node.name.."' ########################################################################")
				minetest.chat_send_player(user:get_player_name(), dump(props))
				minetest.chat_send_player(user:get_player_name(), "Light="..minetest.env:get_node_light(pointed_thing.above, nil))
			else
				minetest.chat_send_player(user:get_player_name(), "Isso e um '"..props.description.."'.")
			end
			return 
		end
	end,
})

minetest.register_craft({
	output = "lunodecor:lupa",
	recipe = {
		{"",					"",					"default:glass"},
		{"",					"default:stick",	""},
		{"default:stick",	"",					""},
	},
})

minetest.register_alias("lupa", "lunodecor:lupa")
